var _EsdDynamicTransformationFunction = function($){
/**
 * 命名空间定义
 */
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
 * 文本链接 a
 */
//保证所有a标签都有href
$("a").each(function(){

	var aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	//给a标签加title
	var aTitle = this.title;
	var aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});
/**
 * 图片处理片段
 */

$('img[src="./images/icon_leader_hd.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./zhuanti/shgysldd/slaqsc/images/P020191216332155547958.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./xwdt/tp/201907/W020190725313267676695.png"]').attr('title','吉林省惠企惠民政策手册').attr('alt','吉林省惠企惠民政策手册');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="../images/ywxx_rsrm_img_slt2017.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./xwdt/ywdt/201911/W020191129360068580471.jpg"]').attr('title','吉林省积极开展河湖长制宣传月活动“向新中国成立七十周年献礼”').attr('alt','吉林省积极开展河湖长制宣传月活动“向新中国成立七十周年献礼”');$('img[src="./zxzt/201811/W020181107330822707362.jpg"]').attr('title','水利厅回头看专题').attr('alt','水利厅回头看专题');$('img[src="./xwdt/tp/201906/W020190617531963890760.jpg"]').attr('title','吉林省水利厅组织参观警示教育展览活动').attr('alt','吉林省水利厅组织参观警示教育展览活动');$('img[src="./kzgn/lmlogo/images/P020190422621447643651.png"]').attr('title','吉林省水利厅').attr('alt','吉林省水利厅');$('img[src="./xwdt/tp/201912/W020191226489826886369.jpg"]').attr('title','坚决扛起水利担当 全面推行河湖长制 打好打赢污染防治攻坚战').attr('alt','坚决扛起水利担当 全面推行河湖长制 打好打赢污染防治攻坚战');$('img[src="./xwdt/ywdt/201912/W020191231318276597895.jpg"]').attr('title','吉林省水利水电勘测设计研究院召开会议总结2019年度工作、安排2020年度重点工作').attr('alt','吉林省水利水电勘测设计研究院召开会议总结2019年度工作、安排2020年度重点工作');$('img[src="./zhuanti/zxzt/201807/W020180718504685286689.png"]').attr('title','社会公益 水利担当').attr('alt','社会公益 水利担当');$('img[src="./images/logo_slt2017_white.png"]').attr('title','国徽图标').attr('alt','国徽图标');$('img[src="./images/icon_ywxx_sljsxxpt.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./zhuanti/zxzt/201903/W020190403607047684255.jpg"]').attr('title','扫黑除恶 吉林亮剑').attr('alt','扫黑除恶 吉林亮剑');$('img[src="./images/icon_ywxx_rsrm.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="../images/ywxx_gwgg_img_slt2017.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/logo_guohui.png"]').attr('title','国徽图标').attr('alt','国徽图标');$('img[src="./zhuanti/zxzt/201712/W020171222339864924460.jpg"]').attr('title','不忘初心，牢记使命').attr('alt','不忘初心，牢记使命');$('img[src="./xwdt/tp/201912/W020191226488364783314.jpg"]').attr('title','守护一湾碧水 回报父老乡亲 白城市河湖长制工作初见成效').attr('alt','守护一湾碧水 回报父老乡亲 白城市河湖长制工作初见成效');$('img[src="../zhuanti/shgysldd/slaqsc/images/P020191213407523833685.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./xwdt/tp/201907/W020190708605790257669.jpg"]').attr('title','韩沐恩陪同李悦到云峰水库检查指导防汛工作').attr('alt','韩沐恩陪同李悦到云峰水库检查指导防汛工作');$('img[src="./images/icon_ywxx_stbc.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/icon_ywxx_ncysaq.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./zhuanti/zxzt/201804/W020191202328286040229.jpg"]').attr('title','水利“最多跑一次”改革').attr('alt','水利“最多跑一次”改革');$('img[src="./xwdt/tp/201908/W020190822621046472359.jpg"]').attr('title','全力推进农村饮水安全工程建设 吉林省农村饮水安全工作视频会议在长召开').attr('alt','全力推进农村饮水安全工程建设 吉林省农村饮水安全工作视频会议在长召开');$('img[src="./xglj/images/P020180814548249182158.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./images/icon_leader_jh.png"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./zhuanti/zxzt/201712/W020171222340135291501.jpg"]').attr('title','全面推行河长制 吉林在行动').attr('alt','全面推行河长制 吉林在行动');$('img[src="../images/ywxx_jyys_img_slt2017.jpg"]').attr('title','装饰图片').attr('alt','装饰图片');$('img[src="./xwdt/tp/201912/W020191226490710482391.jpg"]').attr('title','吉林省水利厅开展农村饮水安全工程专项督导').attr('alt','吉林省水利厅开展农村饮水安全工程专项督导');$('img[src="./xwdt/tp/201912/W020191226493291100452.jpg"]').attr('title','吉林舒兰：严冬脱贫冲刺 逆风坚守“水线”').attr('alt','吉林舒兰：严冬脱贫冲刺 逆风坚守“水线”');

//img
$("img").each(function(){
	//给图片加alt/title
	var imgAlt = this.alt,
		imgTitle = this.title,
		imgSrc = this.src,
		parentText = this.parentElement.text;

	if(this.alt=="" || this.alt==undefined){
		if(imgTitle!="" && imgTitle!=undefined){
			$(this).attr("alt",imgTitle);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("alt",parentText);
		}
	}
	if(this.title=="" || this.title==undefined){
		if(imgAlt!="" && imgAlt!=undefined){
			$(this).attr("title",imgAlt);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("title",parentText);
		}
	}
})

$("img").each(function(){
	if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
		$(this).attr("title","图片");
		$(this).attr("alt","图片");
	}
})
/**
 * 共通头部
 */

// 定义跳转 使用jquery选择器语法	此部分选择器  其中main,left,right和content在各个页面的if判断语句中重写了
_EsdDynamicTransformationScript.navBlock.selector.top="#mdgov_enterpriseNavigation";
_EsdDynamicTransformationScript.navBlock.selector.footer=".qrn_bottom_box";

//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
// 当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/index.html')?true:false;

// ***************	网站上部/导航栏等公共部分 begin	***************	//
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderKeyword='请输入站内检索关键字';
	_EsdDynamicTransformationScript.placeholderUsername='用户名';
	_EsdDynamicTransformationScript.placeholderPassword='密码';
	_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
	// 搜索框 对象
	_EsdDynamicTransformationScript.inputObject = $('#textfield');
	$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
// ***************	网站上部/导航栏等公共部分 end	***************	//
/**
 * 主导航
 */
/**
 * 网站主页轮播图
 * 
 */

// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
	
	// 0. 轮播图
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationSltPartOneFrontNum1 = $('#textfield');

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum1 = $('#D1pic1 a:eq(1)');
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum2 = $('#D1pic1 a:eq(3)');
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum3 = $('#D1pic1 a:eq(5)');
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum4 = $('#D1pic1 a:eq(7)');
	//	alert('_EsdDynamicTransformationScript.esdRotationSltPartOneANum1: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneANum1 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneANum2: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneANum2 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneANum3: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneANum3 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneANum4: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneANum4);

	//原点
	_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum1 = $('#D1fBt a:eq(0) i:first');
	_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum2 = $('#D1fBt a:eq(1) i:first');
	_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum3 = $('#D1fBt a:eq(2) i:first');
	_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum4 = $('#D1fBt a:eq(3) i:first');
	//	alert('_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum1: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum1 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum2: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum2 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum3: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum3 + '\n' + '_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum4: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum4);

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationSltPartOneAfterNum1 = $(".public_tit:eq(0) a:first");
	//	alert('_EsdDynamicTransformationScript.esdRotationSltPartOneAfterNum1: ' + _EsdDynamicTransformationScript.esdRotationSltPartOneAfterNum1);
	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationSltPartOneFrontNum1.focus(function (e) {
		$(document).bind("keydown.keydown_0_0", function (e) {
			//  console.log('_EsdDynamicTransformationScript.esdRotationSltPartOneFrontNum1.focus(), e.keyCode= ' + e.keyCode);
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSltPartOneFrontNum1.blur(function () {
		$(document).unbind("keydown.keydown_0_0");
	});

	//轮播图 第一块
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum1.focus(function (e) {
		
		$(document).bind("keydown.keydown_0_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum2.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum1.blur(function () {
		$(document).unbind("keydown.keydown_0_1");
	});

	//轮播图 第二块
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum2.focus(function (e) {
		$(document).bind("keydown.keydown_0_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum3.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum2.blur(function () {
		$(document).unbind("keydown.keydown_0_2");
	});

	//轮播图 第三块
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum3.focus(function (e) {
		$(document).bind("keydown.keydown_0_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum4.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum4.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum3.blur(function () {
		$(document).unbind("keydown.keydown_0_3");
	});

	//轮播图 第四块
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum4.focus(function (e) {
		$(document).bind("keydown.keydown_0_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSltPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationSltPartOneANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSltPartOneAfterNum1.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSltPartOneANum4.blur(function () {
		$(document).unbind("keydown.keydown_0_4");
	});

}
// ***************	网站首页 end	***************	//
/**
 * 主页js
 */
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
	// 1. 业务信息/办事服务  选项卡  ------------ begin
	// 各个选项 标题
	_EsdDynamicTransformationScript.esdTabSltPartOneth1Title = $('.public_mar_top10:eq(0) .tabbox ul li a:first');
	_EsdDynamicTransformationScript.esdTabSltPartOneth2Title = $('.public_mar_top10:eq(0) .tabbox ul li a:eq(1)');
	/*	alert('_EsdDynamicTransformationScript.esdTabSltPartOneth1Title: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth1Title).html() + '\n' 
			+ ', _EsdDynamicTransformationScript.esdTabSltPartOneth2Title: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth2Title).html() + '\n' 
		);	*/

	// 各个选项 列表第一个内容
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst = $('.public_mar_top10:eq(0) .tabbox .content').children('div:first').find('a:first');
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst = $('.public_mar_top10:eq(0) .tabbox .content').children('div:last').find('a:first');
	/*	alert('_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst).html() + '\n' 
			+', _EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst).html() + '\n' 
		);	*/

	// 各个选项中 列表最后一个内容
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast = $('.public_mar_top10:eq(0) .tabbox .content').children('div:first').find('a:last');
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentLast = $('.public_mar_top10:eq(0) .tabbox .content').children('div:last').find('a:last');
	 /*	alert('_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast).html() + '\n' 
			+', _EsdDynamicTransformationScript.esdTabSltPartOneth2ContentLast: ' + $(_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentLast).html() + '\n' 
		);	*/

	// 第一部分 第1块 业务信息 tab title跳转
	_EsdDynamicTransformationScript.esdTabSltPartOneth1Title.focus(function () {
		$(this).mouseover();
		
	//_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.parent().parent().parent().show();
	//_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.parent().parent().hide();
		$(this).bind('keydown.keydown_1_1', function (e) {
			if(e.shiftKey&&e.keyCode==9){
				//添加反切绑定代码
			}else if (e.keyCode == 9) {
				var aa=$('.public_mar_top10:eq(0) .tabbox .content').children('div:first').find('a:first');
				aa.focus();
				//_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth1Title.blur(function () {
		$(document).unbind('keydown.keydown_1_1');
	});
	// 第一块 - 列表 第一项
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.focus(function () {
		$(document).bind('keydown.keydown_1_1_1', function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabSltPartOneth1Title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.blur(function () {
		$(document).unbind('keydown.keydown_1_1_1');
	});
	// 第一块 - 列表 最后一项
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast.focus(function () {
		$(document).bind('keydown.keydown_1_1_n', function (e) {
			if(e.shiftKey&&e.keyCode==9){
			}else if (e.keyCode == 9) {
				var aa = $('.public_mar_top10:eq(0) .tabbox ul li a:eq(1)');
				aa.mouseover();
				//_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.mouseover();
				//_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.focus();
				//_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.parent().parent().parent().hide();
				//_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.parent().parent().show();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast.blur(function () {
		$(document).unbind('keydown.keydown_1_1_n');
	});

	// 第一部分 第2块 办事服务 tab title跳转
	_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.focus(function (e) {
	 $(this).mouseover();
	//_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.parent().parent().parent().hide();
	//_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.parent().parent().show();
		$(document).bind('keydown.keydown_1_2', function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.mouseover();
				_EsdDynamicTransformationScript.esdTabSltPartOneth1ContentLast.focus();
				// _EsdDynamicTransformationScript.esdTabSltPartOneth1ContentFirst.parent().parent().parent().show();
				// _EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.parent().parent().hide();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.blur(function () {
		$(document).unbind('keydown.keydown_1_2');
	});
	// 第二块 - 列表 第一项
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.focus(function () {
		$(document).bind('keydown.keydown_1_2_1', function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTabSltPartOneth2Title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentFirst.blur(function () {
		$(document).unbind('keydown.keydown_1_2_1');
	});
	// 第二块 - 列表 最后一项
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentLast.focus(function () {
		$(document).bind('keydown.keydown_1_2_n', function (e) {
			if(e.shiftKey&&e.keyCode==9){
			}else if (e.keyCode == 9) {
			//	_EsdDynamicTransformationScript.esdTabSltPartOneth3Title.focus();
			//	return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTabSltPartOneth2ContentLast.blur(function () {
		$(document).unbind('keydown.keydown_1_2_n');
	});

	// 1. 业务信息/办事服务  选项卡  ------------ end

	// 2. 国务院/省政府  选项卡  ------------ begin
	_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
		if(iframeObj != undefined){
			jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
			jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
			jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
			jsObj.self = iframeObj;
		}
	};

	//声明iframe操作对象
	_EsdDynamicTransformationScript.iframe1 = {};
	_EsdDynamicTransformationScript.iframe2 = {};

	_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
	_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取

	//选项卡标签 jquery对象
	_EsdDynamicTransformationScript.iframeTab1 = $("#tabBox .tabTag li:eq(0) a:first");  // 需要修改 这里的tab获取
	_EsdDynamicTransformationScript.iframeTab2 = $("#tabBox .tabTag li:eq(1) a:first");  // 需要修改 这里的tab获取

	// 判断iframe是否有效
	if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

		// 当iframe都加载完毕后执行代码 使用setInterval
		_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){	
			
			if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined) 
					&&_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined ){
				clearInterval(_EsdDynamicTransformationScript.iframeInterval);
				
				//通过方法赋值   
				_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);  
				_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2); 

				//第一个标签 切换
				_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
				 console.log("tab1获取到焦点");
				 e = $(this).mouseover();
				 $(document).bind("keydown.iframeKeydown_slt_1", function (e) {
					 if (e.shiftKey && e.keyCode == 9) {
							console.log("tab1向回切换");
						 _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
					 } else if (e.keyCode == 9) {
						 console.log("tab1继续切换到iframe上");
						 _EsdDynamicTransformationScript.iframeTab1.trigger("blur");
						 $(_EsdDynamicTransformationScript.iframe1.self).focus();
						 console.log(document.activeElement);
						 return false;
					 }
				 });
				});
				_EsdDynamicTransformationScript.iframeTab1.blur(function () {
				 $(document).unbind("keydown.iframeKeydown_slt_1");
				});

				//第一个标签的第一个链接
				$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
				 console.log("第一个iframe的第一条获得焦点");
				 $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_slt_first1", function (e) {
					 if (e.shiftKey && e.keyCode == 9) {
							console.log("第一个iframe的第一条向上切换");
						 $(document).trigger("blur");
						 _EsdDynamicTransformationScript.iframeTab1.focus();
						 return false;
					 } else if (e.keyCode == 9) {
							console.log("第一个iframe的第一条继续切换");
					 }
				 });
				});
				$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
				 $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_slt_first1");
				});

				//第一个标签的最后一个链接
				$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
				 console.log("第一个iframe的最后一条获得焦点");
				 $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_slt_first1", function (e) {
					 if (e.shiftKey && e.keyCode == 9) {
							console.log("第一个iframe的最后一条向上切换");
					 } else if (e.keyCode == 9) {
							console.log("第一个iframe的最后一条继续切换 到下一个标签");
							 $(document).trigger("blur");
						 _EsdDynamicTransformationScript.iframeTab2.focus();
						 return false;
					 }
				 });
				});
				$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
				 $(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_slt_first1");
				});


				//第二个标签切换
				_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
				 console.log("tab2获取到焦点");
				 e = $(this).mouseover();
				 $(document).bind("keydown.iframeKeydown_slt_2", function (e) {
					 if (e.shiftKey && e.keyCode == 9) {
							console.log("第二个标签向回切换 到第一个标签的最后一条");
						 _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
						 _EsdDynamicTransformationScript.iframeTab1.mouseover();
						 $(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
						 return false;
					 } else if (e.keyCode == 9) {
						 _EsdDynamicTransformationScript.iframeTab2.trigger("blur");
						 $(_EsdDynamicTransformationScript.iframe2.self).focus();
						 console.log(document.activeElement);
						 return false;
					 }
				 });

				});
				_EsdDynamicTransformationScript.iframeTab2.blur(function () {
				 $(document).unbind("keydown.iframeKeydown_slt_2");
				});
			}
			
		}, 500);

	}

	// 2. 国务院/省政府  选项卡  ------------ end
}
// ***************	网站首页 end	***************	//
/**
 * 二级页
 */

// ***************	二级页面之 新闻动态 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/xwdt/'){

		// 0. 轮播图
	/*	轮播,右下角原点--鼠标点击触发情况
		轮播：只获取轮播中一个a标签。
		以文字a标签为主，图片a标签尽量不要，title不稳定
	*/
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink = $('.left_b_box a:first');

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title = $('#D1pic1 .fcon:eq(0) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title = $('#D1pic1 .fcon:eq(1) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title = $('#D1pic1 .fcon:eq(2) span a:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title = $('#D1pic1 .fcon:eq(3) span a:first');
	//	alert('_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title);

	//原点
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point = $('#D1fBt a:eq(0) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point = $('#D1fBt a:eq(1) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point = $('#D1fBt a:eq(2) i:first');
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point = $('#D1fBt a:eq(3) i:first');
	//	alert('_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point + '\n' + '_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point);

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink = $(".xwdt_list_img a:first");
	//	alert('_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink: ' + _EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink);
	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink.focus(function (e) {
		$(document).bind("keydown.keydown_xwdt_0", function (e) {
			//  console.log('_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink.focus(), e.keyCode= ' + e.keyCode);
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_preLink.blur(function () {
		$(document).unbind("keydown.keydown_xwdt_0");
	});

	//轮播图 第一块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus(function (e) {
		
		$(document).bind("keydown.keydown_xwdt_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.blur(function () {
		$(document).unbind("keydown.keydown_xwdt_1");
	});

	//轮播图 第二块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus(function (e) {
		$(document).bind("keydown.keydown_xwdt_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.blur(function () {
		$(document).unbind("keydown.keydown_xwdt_2");
	});

	//轮播图 第三块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus(function (e) {
		$(document).bind("keydown.keydown_xwdt_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_2_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.blur(function () {
		$(document).unbind("keydown.keydown_xwdt_3");
	});

	//轮播图 第四块
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.focus(function (e) {
		$(document).bind("keydown.keydown_xwdt_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_point.click();
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_3_title.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationSlt_xwdt_1_title_afterLink.focus();
				//  console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdRotationSlt_xwdt_4_title.blur(function () {
		$(document).unbind("keydown.keydown_xwdt_4");
	});
}
// ***************	二级页面之 新闻动态 end	***************	//
/**
 * 二级页
 */
// ***************	二级页面之 业务信息 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/ywxx/'){
	
}
// ***************	二级页面之 业务信息 end	***************	//
/**
 * 二级页
 */
// ***************	二级页面之 专题 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/zhuanti/'){
	
}
// ***************	二级页面之 专题 end	***************	//
/**
 * 二级页
 */
// ***************	二级页面之 政务公开 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/zwgk/'){
	
}
// ***************	二级页面之 政务公开 end	***************	//
/**
 * 共通底部处理
 */
/**
 * 页面区域跳转 选择器定义js
 */


// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){
	
	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScript.navBlock.selector.main=".qrn_center_box";
	_EsdDynamicTransformationScript.navBlock.selector.left=".left_box";
	_EsdDynamicTransformationScript.navBlock.selector.right=".right_box";
	_EsdDynamicTransformationScript.navBlock.selector.content="";
}
// ***************	网站首页 end	***************	//

// ***************	二级页面之 新闻动态 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/xwdt/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScript.navBlock.selector.main=".qrn_center_box:eq(1)";
	_EsdDynamicTransformationScript.navBlock.selector.left=".left_b_box";
	_EsdDynamicTransformationScript.navBlock.selector.right=".right_b_box:eq(0)";
	_EsdDynamicTransformationScript.navBlock.selector.content=".cen_b_box";
}
// ***************	二级页面之 新闻动态 end	***************	//

// ***************	二级页面之 政务公开 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/zwgk/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScript.navBlock.selector.main=".qrn_center_box:eq(1)";
	_EsdDynamicTransformationScript.navBlock.selector.left=".left_b_box_big";
	_EsdDynamicTransformationScript.navBlock.selector.right=".right_b_box";
	_EsdDynamicTransformationScript.navBlock.selector.content=".qrn_center_box:eq(1)";
	
}
// ***************	二级页面之 政务公开 end	***************	//

// ***************	二级页面之 专题 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/zhuanti/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScript.navBlock.selector.main=".qrn_center_box:eq(1)";
	_EsdDynamicTransformationScript.navBlock.selector.left=".left_b_box_big";
	_EsdDynamicTransformationScript.navBlock.selector.right=".right_b_box";
	_EsdDynamicTransformationScript.navBlock.selector.content=".qrn_center_box:eq(1)";
	
}
// ***************	二级页面之 专题 end	***************	//

// ***************	二级页面之 业务信息 begin	***************	//
if(_EsdDynamicTransformationScript.currentUrl == 'http://slt.jl.gov.cn/ywxx/'){

	// 提供给区域跳转用的选择器，只有main,left, right和content, 其余top, footer因为是全站通用的，所以在底部已经定义了.
	_EsdDynamicTransformationScript.navBlock.selector.main=".qrn_center_box:eq(1)";
	_EsdDynamicTransformationScript.navBlock.selector.left=".qrn_center_box:eq(1) .public_half_box:eq(0)";
	_EsdDynamicTransformationScript.navBlock.selector.right=".qrn_center_box .public_half_box:eq(1)";
	_EsdDynamicTransformationScript.navBlock.selector.content=".qrn_center_box:eq(1)";
	
}
// ***************	二级页面之 业务信息 end	***************	//

/**
 * 区域导航、调试开关
 */

$(document).bind("keydown.keydown_9001", function(e) {
	if (e.shiftKey && e.keyCode == 20) {
		$("*").focus(function() {
			$(this).css({
				"outline" : "2px dashed red"
			});
		});
		$("*").blur(function() {
			$(this).css({
				"outline" : "0px black"
			});
		});
	}
});

	/**
	 * 说明： 区域跳转+区块跳转
	 * 区域跳转包括：头部区域（top），导航区域(nav)，主要区域(main){左侧区域，中间区域，右侧区域}，底部区域(footer)。
	 * 区块跳转包括：也叫栏目跳转，是对主要区域(main)内进行栏目的细分，用于盲人快速找到感兴趣的栏目。
	 * 
	 */
	// 加载必要支持库，嵌入了mousetrap代码，如需升级版本删除下载新版本后单独加载即可
	/* mousetrap v1.6.5 craig.is/killing/mice */
	(function(q,u,c){function v(a,b,g){a.addEventListener?a.addEventListener(b,g,!1):a.attachEvent("on"+b,g)}function z(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return n[a.which]?n[a.which]:r[a.which]?r[a.which]:String.fromCharCode(a.which).toLowerCase()}function F(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function w(a){return"shift"==a||"ctrl"==a||"alt"==a||
	"meta"==a}function A(a,b){var g,d=[];var e=a;"+"===e?e=["+"]:(e=e.replace(/\+{2}/g,"+plus"),e=e.split("+"));for(g=0;g<e.length;++g){var m=e[g];B[m]&&(m=B[m]);b&&"keypress"!=b&&C[m]&&(m=C[m],d.push("shift"));w(m)&&d.push(m)}e=m;g=b;if(!g){if(!p){p={};for(var c in n)95<c&&112>c||n.hasOwnProperty(c)&&(p[n[c]]=c)}g=p[e]?"keydown":"keypress"}"keypress"==g&&d.length&&(g="keydown");return{key:m,modifiers:d,action:g}}function D(a,b){return null===a||a===u?!1:a===b?!0:D(a.parentNode,b)}function d(a){function b(a){a=
	a||{};var b=!1,l;for(l in p)a[l]?b=!0:p[l]=0;b||(x=!1)}function g(a,b,t,f,g,d){var l,E=[],h=t.type;if(!k._callbacks[a])return[];"keyup"==h&&w(a)&&(b=[a]);for(l=0;l<k._callbacks[a].length;++l){var c=k._callbacks[a][l];if((f||!c.seq||p[c.seq]==c.level)&&h==c.action){var e;(e="keypress"==h&&!t.metaKey&&!t.ctrlKey)||(e=c.modifiers,e=b.sort().join(",")===e.sort().join(","));e&&(e=f&&c.seq==f&&c.level==d,(!f&&c.combo==g||e)&&k._callbacks[a].splice(l,1),E.push(c))}}return E}function c(a,b,c,f){k.stopCallback(b,
	b.target||b.srcElement,c,f)||!1!==a(b,c)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function e(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=z(a);b&&("keyup"==a.type&&y===b?y=!1:k.handleKey(b,F(a),a))}function m(a,g,t,f){function h(c){return function(){x=c;++p[a];clearTimeout(q);q=setTimeout(b,1E3)}}function l(g){c(t,g,a);"keyup"!==f&&(y=z(g));setTimeout(b,10)}for(var d=p[a]=0;d<g.length;++d){var e=d+1===g.length?l:h(f||
	A(g[d+1]).action);n(g[d],e,f,a,d)}}function n(a,b,c,f,d){k._directMap[a+":"+c]=b;a=a.replace(/\s+/g," ");var e=a.split(" ");1<e.length?m(a,e,b,c):(c=A(a,c),k._callbacks[c.key]=k._callbacks[c.key]||[],g(c.key,c.modifiers,{type:c.action},f,a,d),k._callbacks[c.key][f?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:f,level:d,combo:a}))}var k=this;a=a||u;if(!(k instanceof d))return new d(a);k.target=a;k._callbacks={};k._directMap={};var p={},q,y=!1,r=!1,x=!1;k._handleKey=function(a,
	d,e){var f=g(a,d,e),h;d={};var k=0,l=!1;for(h=0;h<f.length;++h)f[h].seq&&(k=Math.max(k,f[h].level));for(h=0;h<f.length;++h)f[h].seq?f[h].level==k&&(l=!0,d[f[h].seq]=1,c(f[h].callback,e,f[h].combo,f[h].seq)):l||c(f[h].callback,e,f[h].combo);f="keypress"==e.type&&r;e.type!=x||w(a)||f||b(d);r=l&&"keydown"==e.type};k._bindMultiple=function(a,b,c){for(var d=0;d<a.length;++d)n(a[d],b,c)};v(a,"keypress",e);v(a,"keydown",e);v(a,"keyup",e)}if(q){var n={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",
	18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},r={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},B={option:"alt",command:"meta","return":"enter",
	escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p;for(c=1;20>c;++c)n[111+c]="f"+c;for(c=0;9>=c;++c)n[c+96]=c.toString();d.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};d.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};d.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};d.prototype.reset=function(){this._callbacks={};
	this._directMap={};return this};d.prototype.stopCallback=function(a,b){if(-1<(" "+b.className+" ").indexOf(" mousetrap ")||D(b,this.target))return!1;if("composedPath"in a&&"function"===typeof a.composedPath){var c=a.composedPath()[0];c!==a.target&&(b=c)}return"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};d.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};d.addKeycodes=function(a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b]);p=null};
	d.init=function(){var a=d(u),b;for(b in a)"_"!==b.charAt(0)&&(d[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};d.init();q.Mousetrap=d;"undefined"!==typeof module&&module.exports&&(module.exports=d);"function"===typeof define&&define.amd&&define(function(){return d})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null);

	// 嵌入了mousetrap代码结束


	_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框


	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个

	// 快捷键定义区
	_EsdDynamicTransformationScript.navBlock.key = {};
	/*
	 * 区域跳转JS 插件支持：jquery、mousetrap
	 * 功能：为避免与浏览器快捷键冲突默认全部采用3+1组合键（alt+ctrl+shift）+自定义键 头部区域跳转
	 * alt+ctrl+shift+T(top) 导航区域跳转 alt+ctrl+shift+N(nav) 主要区域跳转
	 * alt+ctrl+shift+M(main) 左侧区域跳转 alt+ctrl+shift+L(left) 右侧区域跳转
	 * alt+ctrl+shift+R(right) 正文区域跳转 alt+ctrl+shift+C(content) 底部区域跳转
	 * alt+ctrl+shift+F(footer) 栏目导航正跳转 alt+ctrl+shift+D(up) 栏目导航逆跳转
	 * alt+ctrl+shift+U(down);
	 */
	_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
	_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
	_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
	_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
	_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
	_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
	_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
	_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
	_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);


	// 以下变量主要用于区块跳转
	_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
	_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
	_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

	// 主要代码区域

	// 导航跳转
	_EsdDynamicTransformationScript.navBlock.keyShowSelect = function (i) {
	    $(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function (index, el) {
	        if (i == index) {
	            _EsdDynamicTransformationScript.navBlock.debugView(el);
	            $(el).find("a").each(function (i, e) {
	                if (i == 0) {
	                    $(e).focus();
	                }
	            });

	        }
	    });
	}
	
	// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
	$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function (index, ehx) {
	    _EsdDynamicTransformationScript.navBlock.maxIndex++;
	});

	// 前进
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.down, function () { // down
	    if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
	        _EsdDynamicTransformationScript.navBlock.sIndex++;
	        _EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
	    }
	    return false;
	});
	// 后退
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.up, function () { // up
	    if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
	        _EsdDynamicTransformationScript.navBlock.sIndex--;
	        _EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
	    }
	    return false;
	});

	// 快捷键功能区域
	// 跳转到头部
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.top, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
	    return false;
	});
	// 跳转到导航
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.nav, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
	    return false;
	});
	// 跳转到底部
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.footer, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
	    return false;
	});
	// 跳转到主要区域
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.main, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
	    return false;
	});
	// 跳转到左区域
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.left, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
	    return false;
	});

	// 跳转到右区域
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.right, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
	    return false;
	});
	// 跳转到正文区域
	Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.content, function () {
	    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
	    return false;
	});

	// 特定区域跳转
	_EsdDynamicTransformationScript.navBlock.keySelectScroll = function (id) {
	    if ($(id).length > 0) {
	        _EsdDynamicTransformationScript.navBlock.debugView(id);
	        $(id).find("a").each(function (index) {
	            if (index == 0) {
	                $(this).focus();
	            }
	        });
	    } else {}

	}
	if (_EsdDynamicTransformationScript.navBlock.debug == true) {
	    // 如果开启调试模式，添加调试绘制矩形边线
	    $("body").append("<div id='show_top' class='lineshow'></div>");
	    $("body").append("<div id='show_bottom' class='lineshow'></div>");
	    $("body").append("<div id='show_left' class='lineshow'></div>");
	    $("body").append("<div id='show_right' class='lineshow'></div>");
	    $(".lineshow").css({
	        "display": "none"
	    });
	}
	// 开启调试模式后会显示红边
	_EsdDynamicTransformationScript.navBlock.debugView = function (e) {
	    if (_EsdDynamicTransformationScript.navBlock.debug == true) {
	        var x = $(e).offset();
	        var w = parseInt($(e).css("width")); ;
	        var h = parseInt($(e).css("height"));
	        $("#show_top").css({
	            "z-index": "9999",
	            "border": "red 2px solid",
	            "position": "absolute",
	            "top": x.top,
	            "left": x.left,
	            "width": w,
	            "height": "0px"
	        });
	        $("#show_bottom").css({
	            "z-index": "9999",
	            "border": "red 2px solid",
	            "position": "absolute",
	            "top": x.top + h,
	            "left": x.left,
	            "width": w,
	            "height": "0px"
	        });
	        $("#show_left").css({
	            "z-index": "9999",
	            "border": "red 2px solid",
	            "position": "absolute",
	            "top": x.top,
	            "left": x.left,
	            "width": "0px",
	            "height": h
	        });
	        $("#show_right").css({
	            "z-index": "9999",
	            "border": "red 2px solid",
	            "position": "absolute",
	            "top": x.top,
	            "left": x.left + w,
	            "width": "0px",
	            "height": h
	        });
	        $("html,body").animate({
	            scrollTop: $("#show_top").offset().top
	        }, 200);
	        $(".lineshow").css({
	            "display": "block"
	        });
	    }
	}
};
/**
 * 主入口方法
 */



if (window.jQuery == undefined) {
	var wzaInitInterval = setInterval(function(){	
		if(document.body!=null){
			clearInterval(wzaInitInterval);
			document.body.onload = function(){
				var esdJquery = document.createElement("script");
				esdJquery.setAttribute("type", "text/javascript");
				esdJquery.setAttribute("src", window.location.origin + "/wza/bwscript/jquery-1.12.4.min.js");
				esdJquery.setAttribute("charset", "utf-8");
				esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
				esdJquery.onload = function () {
					_EsdDynamicTransformationFunction(jQuery);
				};
				document.head.appendChild(esdJquery);
			};	
		}
	}, 10);
} else {
	jQuery(function(){
		_EsdDynamicTransformationFunction(jQuery);
	})
	
}
